package com.study.demo_servlet.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * @ClassName: MyFilter
 * @Description:
 * @author: WS
 * @date 2020/12/13
 * @Version: 1.0
 **/
@WebFilter(urlPatterns = "/*")
public class MyFilter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("MyFilter>>>>>doFilter");
        filterChain.doFilter(servletRequest,servletResponse);
    }
}
